def calculate_bmi(height, weight):
    bmi = weight / (height ** 2)
    if bmi < 18.5:
        return f"您的bmi质数为{bmi: .2f}过轻"
    elif bmi < 25:
        return f"您的bmi质数为{bmi: .2f}正常"
    elif bmi < 28:
        return f"您的bmi质数为{bmi: .2f}超重"
    elif bmi < 32:
        return f"您的bmi质数为{bmi: .2f}肥胖"
    else:
        print("输入有误")


weight = float(input("请输入体重(单位：千克)："))
height = float(input("请输入身高(单位：米)："))
result = calculate_bmi(height, weight)
print(result)
